<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const obj = {
        name:'dsq'
    }
    localStorage.setItem('info',JSON.stringify(obj))
    console.log(JSON.parse(localStorage.getItem('info')))
</script>
</body>
</html>